package com.huixuebao.after.service;

import com.huixuebao.after.dto.ClassFunctionDTO;
import com.huixuebao.after.dto.FunctionDTO;
import com.huixuebao.common.bean.ApiResult;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface FunctionService {

    ApiResult<List<ClassFunctionDTO>> getFunctionTree(HttpServletRequest request);

    ApiResult getUserFunction(HttpServletRequest request);

    ApiResult getSingTree(HttpServletRequest request);

    ApiResult addFunction(FunctionDTO functionDTO);

    ApiResult editFunction(FunctionDTO functionDTO);

    ApiResult deleteFunction(FunctionDTO functionDTO);
}
